/*
 * @Author: byron
 * @Date: 2021-09-27 13:38:49
 * @LastEditTime: 2022-01-18 11:22:43
 */
import theme from '@/style/themes/theme-default.js'

export default function loadTheme(colorObj = theme) {
    console.log(colorObj)
    const colorList = Object.keys(colorObj)
    colorList.forEach((index) => {
        document.documentElement.style.setProperty(index, colorObj[index])
    })
}
